package sctu.edu.java.year2016.team04.luoxinghua.lianxi.Return;

/**
 * Created by 落叶的思恋 on 2016/5/30.
 */
import  java.util.Scanner;
public class Extantsa extends Abstracta {
    @Override
  public void Area() {
        if (figure.equals("长方形"))
            System.out.println("长方形的面积 为："+aa*bb);
        if(figure.equals("圆"))
            System.out.println("圆的面积是："+Math.PI*Math.pow(radius,2));
    }
}
